package pl.freetimetool.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

@Entity
@Table(name = "administrator")
public class Administrator extends Account {

	@DateTimeFormat(iso = ISO.DATE_TIME)
	Date lastLogin = new Date();

	public Date getLastLogin() {
		return this.lastLogin;
	}

	public void setLastLogin(final Date lastLogin) {
		this.lastLogin = lastLogin;
	}

}
